<template>
  <VDispatchContent
    :id="id"
    :type-show="type"
    :type-in ='typeIn'
    :batch-code="batchCode"
  ></VDispatchContent>
</template>
<script setup lang="ts">
import VDispatchContent from './detailSelf.vue'
import { watch } from 'vue'

import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const id = ref()
const type = ref()
const typeIn = ref()
const batchCode = ref()
watch(
  () => route,
  async () => {
    if (route.path == '/collection/process/initCompilation/processUpdateSelf') {
      id.value = route.query?.id
      type.value = route.query?.type
      typeIn.value=route.query?.typeIn
      batchCode.value = route.query?.batchCode
    }
  },
  { deep: true, immediate: true }
)
</script>
<style scoped lang="scss"></style>
